//
//  SPPlaceholderView.m
//  penzer
//
//  Created by 还带大道 on 2018/11/8.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "SPPlaceholderView.h"

@implementation SPPlaceholderView

- (instancetype)initWithFrame:(CGRect)frame
{
    if(self = [super initWithFrame:frame]){
        [self initUI];
    }
    return self;
}


- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if(self = [super initWithCoder:aDecoder]){
        [self initUI];
    }
    return self;
}


- (void)initUI
{
    self.backgroundColor = [UIColor whiteColor];
    UIImageView *imageV = [UIImageView new];
    _imageV = imageV;
    [self addSubview:imageV];
    
    UILabel *title = [UILabel new];
    _title = title;
    title.textColor = RZ_COLOR(187, 187, 187);
    title.font = [UIFont fontWithName:@"PingFang-SC-Medium" size:12];
    [self addSubview:title];
    
    UIButton *btn = [UIButton new];
    _jumpBtn = btn;
    btn.titleLabel.font = [UIFont fontWithName:@"PingFang-SC-Medium" size:16];
    btn.backgroundColor = RZ_COLOR(254, 220, 69);
    [btn setTitleColor:RZ_COLOR(74, 74, 74) forState:UIControlStateNormal];
    [self addSubview:btn];
   
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    _jumpBtn.layer.cornerRadius = _jumpBtn.height*0.5;
    
}
@end
